#include <cstdio>

#define MAX_SIZE 100

#define OK puts ("OK")
#define CHANGE_BIT(x,y) printf("Change bit (%u,%u)\n", (x+1), (y+1))
#define CORRUPT puts("Corrupt")


int	rowsum[MAX_SIZE],
	colsum[MAX_SIZE];


inline size_t get_number (size_t &n)
{
	scanf ("%u", &n);
	return n;
}


inline void clear (int *v, size_t SIZE = MAX_SIZE)
{
	while (SIZE)
	{
		*v = 0;
		++v;
		--SIZE;
	}
}


int main ()
{
	size_t n, i, j, cell, last_odd_row, last_odd_col;
	int odd_rows, odd_cols;

	while (get_number (n))
	{
		clear (rowsum, n);
		clear (colsum, n);
		odd_cols = 0;
		odd_rows = 0;
		last_odd_col = 0;
		last_odd_row = 0;

		for (i = 0; i < n; ++i)
		{
			for (j = 0; j < n; ++j)
			{
				get_number (cell);
				rowsum[i] ^= cell;
				colsum[j] ^= cell;
			}
			if (rowsum[i])
			{
				++odd_rows;
				last_odd_row = i;
			}
		}

		for (j = 0; j < n; ++j)
		{
			if (colsum[j])
			{
				++odd_cols;
				last_odd_col = j;
			}
		}

		if (odd_rows == odd_cols)
		{
			switch (odd_rows)
			{
				case 0:
					OK;
					break;
				case 1:
					CHANGE_BIT (last_odd_row, last_odd_col);
					break;
				default:
					CORRUPT;
			}
		}
		else
		{
			CORRUPT;
		}
	}

	return 0;
}